package com.healthy.education.mapper;

import java.util.List;
import com.healthy.education.domain.UserCoursePurchases;

/**
 * 课程购买记录Mapper接口
 * 
 * @author 束伟
 * @date 2024-03-29
 */
public interface UserCoursePurchasesMapper 
{
    /**
     * 查询课程购买记录
     * 
     * @param id 课程购买记录主键
     * @return 课程购买记录
     */
    public UserCoursePurchases selectUserCoursePurchasesById(Long id);

    /**
     * 查询课程购买记录列表
     * 
     * @param userCoursePurchases 课程购买记录
     * @return 课程购买记录集合
     */
    public List<UserCoursePurchases> selectUserCoursePurchasesList(UserCoursePurchases userCoursePurchases);

    /**
     * 新增课程购买记录
     * 
     * @param userCoursePurchases 课程购买记录
     * @return 结果
     */
    public int insertUserCoursePurchases(UserCoursePurchases userCoursePurchases);

    /**
     * 修改课程购买记录
     * 
     * @param userCoursePurchases 课程购买记录
     * @return 结果
     */
    public int updateUserCoursePurchases(UserCoursePurchases userCoursePurchases);

    /**
     * 删除课程购买记录
     * 
     * @param id 课程购买记录主键
     * @return 结果
     */
    public int deleteUserCoursePurchasesById(Long id);

    /**
     * 批量删除课程购买记录
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteUserCoursePurchasesByIds(Long[] ids);
}
